package cn.lycode.common.core.page;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PageResult<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private long current; //当前页

    private long limit; //每页条数

    private long totalPage; //总页数

    private long total; //总条数

    private List<T> rows; //结果集

    private Object param; //额外参数

    public PageResult(long current, long limit, long totalPage, long total, List<T> rows, Object param) {
        this.current = current;
        this.limit = limit;
        this.totalPage = totalPage;
        this.total = total;
        this.rows = rows;
        this.param = param;
    }
}
